/**
 * Copyright (c) 2007, Blue Hole Software. All rights reserved.
 * Code licensed under the Apache 2.0 License:
 * http://www.apache.org/licenses/
 */
package org.bhf.validation;

import org.bhf.validation.annotations.NotNull;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * More complex object.
 */
public class AddressBookWithAnonymousList implements Serializable
{
    private List people = new ArrayList();
    private Person owner;

    @NotNull
    public Person getOwner()
    {
        return owner;
    }

    public void setOwner( Person owner )
    {
        this.owner = owner;
    }

    @NotNull
    public List getPeople()
    {
        return people;
    }

    public void setPeople( List people )
    {
        this.people = people;
    }
}
